package wrapper;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/11 16:27
 */
public class IntegerDemo {
    public static void main(String[] args) {
        Integer i1=new Integer(5);
        Integer i2=new Integer(5);
        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));



    Integer i3=Integer.valueOf(5);
    Integer i4=Integer.valueOf(5);
        System.out.println(i3==i4);
        System.out.println(i3.equals(i4));


        Integer i=Integer.valueOf(5);
        int j=i.intValue();


        Integer m=5;
        int n=m;
        System.out.println("___"+n);



        int max=Integer.MAX_VALUE;
        int min=Integer.MIN_VALUE;
        System.out.println("最大值："+max+"最小值"+min);



        long max1=Long.MAX_VALUE;
        long min2=Long.MIN_VALUE;
        System.out.println("最大值"+max1+"最小值"+min2);

        String s1="40";
        int age=Integer.parseInt(s1);
        System.out.println(age);


        String s2="123.456";
        double price=Double.parseDouble(s2);
        System.out.println(s2);



    }
}
